<?php echo $this->Html->css(array('users.login','form'),null,array('inline'=>false));?>
<div class="content">
	<div class="left-column">
		<div class="box corners">
		
		</div>
	</div>
		
	<div class="right-column">
		<div class="box corners">
			<?php if($session->check("Auth.User.id")){?>
			<h2 class="red"><?php __d("store","Logout")?></h2>
			<?php echo $session->read("Auth.User.email")?> | 
			<?php echo $html->link(__d("store","Wyloguj się",true),array('plugin'=>false,'controller'=>'users','action'=>'logout'),array('class'=>'button'));?>
			<?php }else{?>
			<h2 class="red"><?php __d("store","Login")?></h2>
			<div class="text-content">
				<?php echo $this->Form->create('User', array('url' => array('controller' => 'users', 'action' =>'login')));?>
					
				<?php echo $this->Form->input('email',array('label'=>'E-mail'))?>
				<?php echo $this->Form->input('password',array('label'=>__('Password',true)))?>
				<br/>
				<?php echo $html->link(__d("store","Forgotten your password?",true),array('controller'=>'users','action'=>'new_password'));?>
			
				<?php echo $this->Form->end(__('Login',true));?>
			</div>
			<?php }?>
		</div>
	</div>
</div>
<div class="clr"></div>